package _99练习;

public class Circle {
	int r;

	public void print() {
		System.out.println("圆的半径为" + r);
	}

	public void getArea() {
		double area = 3.14 * r * r;
		System.out.println(area);
	}

	public void getPerimeter() {
		double perimeter = 2 * 3.14 * r;
		System.out.println(perimeter);
	}
}
